package common

// A list of task types.
const (
	// 定时任务 ScheduleXxx 样式 (定时处理)
	ScheduleComputerAdd = "schedule:computer_add"
	// 延时队列 DeferXxx 样式 (延时处理)
	DeferCloseOrder = "defer:close_order"
	// 消息队列 MsgXxx 样式 (立即处理)
	MsgEmailDelivery = "msg:email_delivery"
	MsgPhoneDelivery = "msg:phone_delivery"
)

// 对应负载
type ComputerAddPayload struct {
	Num1 int
	Num2 int
}

type CloseOrderPayload struct {
	OrderId int
}

type EmailDeliveryPayload struct {
	UserId     int
	TemplateId string
}

type PhoneDeliveryPayload struct {
	UserId int
	Code   string
}
